import Vue from 'vue'
import App from './App.vue'
import router from './router'
import "@/main/components"
import "@/main/element"
import "@/main/eventBus"
import "@/main/lazyLoad"
import "@/main/validate"

import store from './store'

//将mock引入项目
import'@/mock/mockServer'
Vue.config.productionTip = false


new Vue({
  router,
  store,
  //创建事件总线的实例，需要在子组件挂载之前创建
  beforeCreate(){
    Vue.prototype.$bus=this
  },
  render: h => h(App)
}).$mount('#app')
